/*
*
* Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file
*
*/

import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport';
import { TurboModuleRegistry } from 'react-native';

export interface Spec extends TurboModule {
  start(delay: number): void;
  stop(): void;
  setTimeout(timeoutId:number,timeout:number): void;
}

export default TurboModuleRegistry.get<Spec>('BackgroundTimerTurboModule') as Spec | null;